<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="~{storelayout}">
<head>
    <title>会员充值</title>
</head>
<body>
<div layout:fragment="content">
    <fieldset class="layui-elem-field">
        <legend>会员 - 充值</legend>
        <div class="layui-field-box">
            <form class="layui-form" lay-filter="example" method="post"  th:action="@{/csnr1}">
                <div th:if="${errork != null}" style="text-align: center">
                    <span class="layui-btn layui-btn-sm layui-btn-danger"  th:text="${errork}"></span><br><br>
                </div>
                <div class="layui-input-block" style="float: left; position: relative;">
                    <label class="layui-form-label">会员搜索</label>
                    <input style="width: auto;" type="text" id="select_orderId" name="iphone" lay-verify="required" placeholder="请输入会员卡/手机号" autocomplete="off" class="layui-input">
                </div>
                <button name="bn" value="按钮1" type="submit" class="layui-btn" lay-submit="seach_submits" id="searchBtn" lay-filter="reloadlst_submit" data-type="getInfo" style="float: left;">搜索</button>
            </form>
            <table class="layui-table" lay-even="" lay-skin="row">
                <colgroup>
                    <col width="150">
                    <col width="200">
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>会员卡号</th>
                    <th>姓名</th>
                    <th>手机号</th>
                    <th>余额</th>
                    <th>操作</th>
                </tr>
                </thead >
                <tbody>
                <tr th:each="note:${list}" th:if="${note.storeId==list1.id}">
                    <td id="aa" th:text="${note.cardId}"></td>
                    <td th:text="${note.name}"></td>
                    <td th:text="${note.iphone}"></td>
                    <td th:text="${note.balance}"></td>
                    <td><button data-method="offset" data-type="auto" type="button" class="layui-btn layui-btn-xs cz">充值</button></td>
                </tr>
                </tbody>
            </table>
            <div th:if="${notfound != null}" style="text-align: center">
                <span class="layui-btn layui-btn-sm layui-btn-danger"  th:text="${notfound}"></span><br><br>
            </div>
        </div>
    </fieldset>
    <script>
        //JavaScript代码区域
        layui.use(['element','layer','jquery'], function(){
            var element = layui.element;
            var $ = layui.jquery, layer = layui.layer;
        });
    </script>
    <script th:src="@{/js/recharge.js}" type="text/javascript"></script>
</div>
</body>
</html>